The camera’s x in the room, in pixels.
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_x() -> realreal
The camera's x in the room, in pixels counted from the room's top-left corner (x grows to the right, a tile is 8 pixels). It is where view3d_move or view3d_camera last left it.
var tile_column = view3d_x() div 8;The column of tiles the camera stands in.
Where view3d_move left it.